/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package grundlagen.Vererbung;

/**
 *
 * @author dgreipl
 */
public class A {
    // Instanzvariablen
    int a;

    // Konstruktor der Klasse
    A(){
        a = 0;
    }

    // Methoden der Klasse
    public void setA( int x){ a = x; }
    public int getA () { return a; }
    public void doVerdoppelnA() { a = 2*a; }
}
